<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .box {
            padding: 30px 20px;
            background-color: antiquewhite;
        }

        .box .top {
            display: flex;
            justify-content: space-between
        }

        .box .one {
            display: flex;
            margin: 20px 0;
            position: relative;
        }

        .box .one img {
            width: 80px;
            margin-right: 20px;
        }

        .box .one .zhong {
            flex: 1;
        }

        .box .one .zhong h4 {
            margin-bottom: 30px;
        }

        .box .one .zhong p {
            color: orangered;
        }

        .box .one .zhong span {
            color: rgb(168, 164, 163);
            font-size: 12px;
        }

        .box .one .xia {
            position: absolute;
            bottom: 2px;
            right: 2px;
        }

        .box .one .xia button {
            width: 30px;
            height: 30px;
            font-size: 20px;
            border-radius: 50%;
            margin: 0 10px;
            color: blue;
            border: 1px solid blue;
        }

        .box .one .xia button:nth-child(2) {
            color: white;
            background-color: blue;
            border: 1px solid blue;
        }
    </style>
</head>

<body>
    <div class="box" id="app">
        <div class="list" v-for="(item,index) in tasklist" :key="index">
            <div class="top">
                <h2 class="h2">{{item.h2}}</h2>
                <p class="del">{{item.del}}</p>
            </div>
            <div class="one">
                <img :src="item.pic" alt="">
                <div class="zhong">
                    <h4 class="yu">{{item.yu}}</h4>
                    <p class="money"> {{item.money}}<span class="qian">{{item.qian}}</span> </p>
                </div>
                <div class="xia">
                    <button class="btn1">{{item.btn1}}</button>
                    <span class="count">{{item.count}}</span>
                    <button class="btn2">{{item.btn2}}</button>
                </div>
            </div>
        </div>

    </div>
</body>

</html>
<script src="./js/vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: '#app',
        data: {
            tasklist: [
                { id: '1', h2: '已选商品', del: '清空', pic: './img/yu1.jpg', yu: '秋刀鱼/斤', money: '￥35.00', qian: '￥35', btn1: '-', count: '1', btn2: '+' },
                { id: '1', pic: './img/yu2.jpg', yu: '鲜大带鱼/条', money: '￥45.00', qian: '￥45', btn1: '-', count: '1', btn2: '+' },
                { id: '1', pic: './img/pipixia.jpg', yu: '鲜活全母皮皮虾/斤', money: '￥85.00', qian: '￥85', btn1: '-', count: '1', btn2: '+' },
                { id: '1', pic: './img/baoyu.jpg', yu: '13-15头鲍鱼/只', money: '￥199.00', qian: '￥199', btn1: '-', count: '1', btn2: '+' }

            ]
        }

    })
</script>